Crate plist [] [src]

Plist

A rusty plist parser.

Usage

Put this in your Cargo.toml:

[dependencies]
plist = "0.2"

And put this in your crate root:

extern crate plist;

Examples

use plist::Plist;
use std::fs::File;

let file = File::open("tests/data/xml.plist").unwrap();
let plist = Plist::read(file).unwrap();

match plist {
    Plist::Array(_array) => (),
    _ => ()
}
Be careful when using this code, it's not being tested!
#[macro_use]
extern crate serde_derive;

use plist::serde::deserialize;
use std::fs::File;

#[derive(Deserialize)]
struct Info {
    name: String,
    x: i32
}

let file = File::open("tests/data/xml.plist").unwrap();
let info: Info = deserialize(file).unwrap();

Modules

binary
serde
xml

Structs

Date

A UTC timestamp. Used for serialization to and from the plist date type.

EventReader

Enums

Error
Plist
PlistEvent

An encoding of a plist as a flat structure.

Traits

EventWriter

Type Definitions

Result